package com.yu8home.mq.rabbit.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Direct Exchange（直连型交换机 p2p）：通过完全匹配路由键来分发消息
 */
@Configuration
public class DirectConfig {

    @Bean
    public Queue a() {
        return new Queue("yu8home.aaaa");
    }

}
